﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Ordinaire;

namespace Ordinaire
{
    /// <summary>
    /// Used by any class that accepts and parse a given data entity as new instance of its own type.
    /// </summary>
    /// <typeparam name="TId">type of id</typeparam>
    /// <typeparam name="TWho">type of creator</typeparam>
    public interface ILoadData<TId, TWho>
    {
        /// <summary>
        /// Returns its own instance with the given data.
        /// </summary>
        /// <param name="data">data</param>
        /// <returns>its own instance</returns>
        void Load(Data<TId, TWho> data);
    }
}
